package guestbook;
import java.net.URL;
import java.net.URLConnection;
/*
 * this class creates a URL object based on a given address and sets its parameters
 */
public class MyUrl {
	
	private URL url;
	
	public MyUrl(String address) throws Exception{
		URL url=new URL(address);
		URLConnection url2= url.openConnection();
		url2.setConnectTimeout(10000);
		url2.setReadTimeout(10000);
		this.url=url;
	}
	
	public URL getUrl(){
		return url;
	}

}
